//
//  SQNewAddressViewController.h
//  pai
//
//  Created by pro on 14-11-17.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import "SQBaseNormalViewController.h"
#import "HZAreaPickerView.h"

@protocol addressChangeDelegate <NSObject>

-(void)changeAddress:(addr_t)address;
-(void)addAddress;

@end

@interface SQNewAddressViewController : SQBaseNormalViewController<UITextFieldDelegate, HZAreaPickerDelegate, HZAreaPickerDatasource>

@property (strong, nonatomic) NSString *areaValue, *cityValue;
@property (strong, nonatomic) HZAreaPickerView *locatePicker;

@property NSString* province;
@property NSString* city;
@property NSString* district;

@property addr_t initaddress;
@property BOOL showaddress;

@property (nonatomic, weak) id<addressChangeDelegate> delegate;

@property (weak, nonatomic) IBOutlet UITextField *nameLabel;
@property (weak, nonatomic) IBOutlet UITextField *mobileLabel;
@property (weak, nonatomic) IBOutlet UITextField *cityLabel;
@property (weak, nonatomic) IBOutlet UITextField *detailedLabel;

- (IBAction)doActionSelectCity:(id)sender;
- (IBAction)doActionSubmitAddress:(id)sender;

-(void)setAddress:(addr_t)address;

@end
